package com.itheima.mall.api.oms;


import com.itheima.mall.mapper.oms.CompanyAddressMapper;
import com.itheima.mall.pojo.oms.OmsCompanyAddress;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class CompanyAddressApiImpl implements CompanyAddressApi{

    @Autowired
    private CompanyAddressMapper companyAddressMapper;

    @Override
    public List<OmsCompanyAddress> listAll() {
        return companyAddressMapper.selectList(null);
    }
}
